class OnlyOne:
    def __init__(self, n):
        self.n = n

    # "整理", "线路整理", "回抽", "电源线", "接地", "地锚", "电池"
    def select(self):
        if self.n in ("整理", "线路整理"):
            return 3
        elif self.n in ("回抽"):
            return 4
        elif self.n in ("接地"):
            return 32
        elif self.n in ("接地"):
            return 32
        elif self.n in ("地锚"):
            return 155
        elif self.n in ("电池"):
            return "电池"

    def getOnelyOne(self):
        return self.select()

    # def peOutputGuandaoJiakongLounei(self):
    #     self.x = re.findall("架空|管道|楼内", self.inse)[0]
    #     return self.x
    #
    # """架空管道楼内"""
    #
    # def peOutputChaichuFuzheng(self):
    #     self.x = re.findall("拆除|新|扶正|敷设|铺设", self.inse)[0]
    #     return self.x
    #
    # """壁挂落地"""
    #
    # def peOutLuodiBigua(self):
    #     self.x = re.findall("落地|壁挂|挂壁", self.inse)[0]
    #     return self.x
    #
    # """壁挂落地"""
    #
    # def peOutjichu(self):
    #     self.x = re.findall("基础|地基|底座", self.inse)[0]
    #     return self.x
